package com.example.shiwu.util;

import java.util.ArrayList;
import java.util.List;

public class DataJIxi {
    private static byte[] bytes = {-103, 91, -127, 63};
    private static byte[] bytes2 = {-70, -77, 82, -68};
    private static byte[] bytes3 = {-104, -74, -42, 58};
    private static byte[] bytes4 = {56, -86, -39, 59};


    private static String recv_float(byte[] val) {
        return DataParseUtil.recv_float(val);
    }
    public static byte[] addElement(byte[] arr) {
        byte[] newArr = new byte[arr.length];
        System.arraycopy(arr, 0, newArr, 0, arr.length);
        return newArr;
    }

//    public static void main(String[] args) {
//
//        byte[] result  = addElement(bytes);
//        String data = recv_float(result);
//        System.out.println("data === "+data);
//    }
    public static void mains() {

        //byte[] result  = addElement(bytes);
//        String data = recv_float(bytes);
//        String data2 = recv_float(bytes2);
//        String data3 = recv_float(bytes3);
        String data4 = recv_float(bytes4);
        //System.out.println("TX_V === "+data+" TX_I === "+data2+" RX_V === "+data3);
        System.out.println("tx_c === "+data4);
    }

    public static void main(String[] args) {
        String[] boxId = {"01","00","00","00","00","00","00","00","00","10"};
        //String[] boxlis = {"1","2","3","4","5","6","7","8","9","10","11","12"};
        List<String> result = new ArrayList<>();
        for (int y = 0; y < boxId.length; y++) {
            if(!boxId[y].equals("00")){
                for (int i = 1; i < 12; i++) {
                    String boxAb = boxId[y]+":"+i+":"+boxId[y]+":"+(i + 1);
                    result.add(boxAb);
                }
            }

        }
        for (int i = 0; i < result.size(); i++) {
            System.out.println(result.get(i));
        }

    }
}
